while (true) {
    //click(950, 2130)
    gesture(1000, [device.width - 100, device.height * 90 / 100], [100, device.height * 90 / 100]);
    //gesture(1000, [device.width - 100, device.height * 9 / 10], [device.width - 500, device.height * 9 / 10]);
    sleep(1000);
}